import request from '@/utils/request'
export function workOrderDelete(id) {
  return request({
    url: `/system/workorder/delete/${id}`,
    method: 'POST'
  })
}

export function workOrderList(data) {
  return request({
    url: '/system/workorder/list',
    method: 'post',
    data
  })
}

export function workOrderDetails(id) {
  return request({
    url: `/system/workorder/list/${id}`,
    method: 'POST'
  })
}

export function workOrderSave(data) {
  return request({
    url: '/system/workorder/save',
    method: 'POST',
    data
  })
}

export function detailByWorkId(params) {
  return request({
    url: '/system/task/detailByWorkId',
    params
  })
}
